@file:Suppress("unused")

package com.example.demo.model.mall

import xyz.erupt.annotation.*
import xyz.erupt.annotation.sub_field.*
import xyz.erupt.jpa.model.*
import javax.persistence.*

@Erupt(name = "商品型号")
@Table(name = "mall_goods_spec")
@Entity
class GoodsSpec : BaseModel() {

    @EruptField(views = [View(title = "名称")], edit = Edit(title = "名称", notNull = true))
    var name: String = ""

    @EruptField(views = [View(title = "价格")], edit = Edit(title = "价格", notNull = true))
    var price: Double = 0.0

    @EruptField(views = [View(title = "库存")], edit = Edit(title = "库存", notNull = true))
    var inventory: Int = 0

}